<template>
	<view class="invi-bg">
		<u-navbar title="邀请好友" :autoBack="true" :placeholder="true">
		</u-navbar>
		<view id="content">
			<view class="invi-content">
				<view class="title">
					奖励规则：
				</view>
				<view class="content bgfff">
					{{data.rules_desc}}
				</view>
			</view>
			<view class="invi-content">
				<view class="title">
					通过公众号海报邀请：
				</view>
				<view class="content">
					<image :src="data.poster" mode="" class="img"></image>
				</view>
			</view>
			<view class="invi-bottom">
				<view class="">
					点击分享好友或
					保存图片按钮
				</view>
			    <view class="">
			    	>
			    </view>
				<view class="">
					长按图片发送给好友或保存图片到本地
				</view>
				
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				data: []
			}
		},
		onLoad() {
			this.getData()
		},
		methods: {
			getData() {
				this.$api.share().then(res => {
					this.data = res
				})

			}
		}
	}
</script>

<style scoped lang="scss">
	.bgfff{
		background: #fff;
		padding:30rpx;
		border-radius: 10rpx;
	}
	.invi-bg{
		height:100vh;
		width: 100%;
		background: #f4f4f4;
	}
	#content {
		margin-top: 60rpx;
		padding: 0 20rpx;
	}

	.invi-content {
		display: flex;
		flex-direction: column;
		gap:60rpx;
		margin-bottom: 100rpx;

		&>.title {
			font-size:32rpx;
			font-weight: bold;
			text-align: center;
		}
		.img{
			height:600rpx;
			width: 600rpx;
			margin:0 auto;
			display: block;
		}

	}
	.invi-bottom{
		position: fixed;
		bottom:0;
		left:0;
		width: 100%;
		display:flex;
		justify-content: space-between;
		height:150rpx;
		background: #fff;
		gap:40rpx;
		font-size: 26rpx;
		color:#666;
		align-items: center;
		justify-content: center;
		padding:0 40rpx;
		box-sizing: border-box;

	}
</style>